]> dgit.raspbian.org Git - gnome-shell.git/commit
boxpointer: Don't set actor position during allocation
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 13 Jun 2019 17:24:01 +0000 (19:24 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 17 Jun 2019 12:22:18 +0000 (14:22 +0200)
commit5481c1899f3d477bbf9f8319fe6ef933f77fc4e1
treeed89c534a96a579d91016a8ff58d0ea53c3cbeb6
parent2fd120162fe49bc85d7773435ac1412c512c5af4
boxpointer: Don't set actor position during allocation

As per commit 044572cb60 boxpointer uses its own coordinates to position itself.
However this would lead to warning when mutter-clutter is compiled with debug
options as we'd might try to set the box coordinates during the allocation
cycle.

So, when calling _reposition during allocation, instead of setting the actor's
coordinates we just pass the allocation box and we adjust its origin, in order
to set it properly in the vfunc.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1382
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/576
js/ui/boxpointer.js